<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateNoticeTable extends Migration
{
    public function up()
    {
        //公告
        Schema::create('notice', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('manager_id',20)->nullable()->comment('用户名ID');
            $table->string('author')->nullable()->comment('作者名称');
            $table->string('title')->comment('标题');
            $table->text('content')->comment('内容');
            $table->timestamps();
        });

    }

    public function down()
    {
        Schema::dropIfExists('notice');
    }
}
